<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <h:body>
        <ui:composition template="./HomeTemp.xhtml">
            <ui:define name="eventcontent">
                
            </ui:define>
            <ui:define name="listevent">
                <h:form>
                    <div class="tbaddevent">
                        <div class="titladdevent">
                            <h:outputText style="top: 20px; font-size: 21px" value="Add Event"></h:outputText>
                        </div>
                        <div class="contentaddevent">
                        <table>
                            <tr>
                                <td><h:outputText value="Category:"></h:outputText></td>
                                <td><p:inputText value="#{eventBean.eventEntities.categoryId}" /><br/></td>
                            </tr>
                            <tr>
                                <td><h:outputText value="Event Name: "></h:outputText></td>
                                <td><p:inputText value="#{eventBean.eventEntities.eventName}" /><br/></td>
                            </tr>
                            <tr>
                                <td><h:outputLabel value="Start Date: "/></td>
                                <td><p:calendar id="dtstartdate" value="#{eventBean.eventEntities.startDate}" pattern="MM/dd/yyyy HH:mm"/><br/></td>
                            </tr>
                            <tr>
                                <td><h:outputLabel value="End Date: "/></td>
                                <td><p:calendar id="dtenddate" value="#{eventBean.eventEntities.endDate}" pattern="MM/dd/yyyy HH:mm"/><br/></td>
                            </tr>
                            <tr>
                                <td><h:outputText value="Address: "></h:outputText></td>
                                <td><p:inputText value="#{eventBean.eventEntities.address}"/><br/></td>
                            </tr><tr>
                                <td><h:outputText value="Description: "></h:outputText></td>
                                <td><p:inputText value="#{eventBean.eventEntities.description}"/><br/></td>
                            </tr>
                            <tr>
                                <td><h:outputText value="Price: "></h:outputText></td>
                                <td><p:inputText value="#{eventBean.eventEntities.price}"/><br/></td>
                            </tr>
                            <tr>
                                <td colspan="2" align ="center"><h:commandButton value="Add Event" action="#{eventBean.InsertEvent}" ></h:commandButton></td>
                            </tr>
                        </table> 
                        </div>
                    </div>
            </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
